{%extends "base.html"%}
{% comment %}
Copyright 2010 Lorenzo Benfenati, Andrea Zucchelli"
This file is part of MyMovieCollection.

MyMovieCollection is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3 as published by
the Free Software Foundation.

MyMovieCollection is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with MyMovieCollection. If not, see <http://www.gnu.org/licenses/>
{% endcomment %}
{%block title%}MMC: Search Result{%endblock title%}
{%block content%}

{%if files%}
<p>Sono stati trovati {{files|length}} titoli</p>
<p>Seleziona il titolo corretto</p>
<form action="{%url mymc.views.link_title_file%}" method="post">
{% csrf_token %}
<ul>
{%for t in files%}
<li><label for="{{ t.id }}"><input type="checkbox"  name="files" value="{{ t.id }}" id="{{ t.id }}" /> {{t.filename}} </label></li>
{%endfor%}
</ul>
<input type="submit" value= "Ok"/>
</form>
{%endif%}

{%endblock content%}